package com.gxan.common;
/*
分页实体类：
做分页，有前后端需要数据
前端需要：数据 总条数  code msg
 */
public class JsonResult<T> {
    private Integer code;//状态码
    private String msg;//返回的提示信息
    private Integer count;//返回总条数
    private T data;//返回的数据List Map 等

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
